package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysPrepaidPackageMapper;
import com.ruoyi.system.domain.SysPrepaidPackage;
import com.ruoyi.system.service.ISysPrepaidPackageService;

/**
 * 套餐购买充值Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class SysPrepaidPackageServiceImpl implements ISysPrepaidPackageService 
{
    @Autowired
    private SysPrepaidPackageMapper sysPrepaidPackageMapper;

    /**
     * 查询套餐购买充值
     * 
     * @param packageId 套餐购买充值主键
     * @return 套餐购买充值
     */
    @Override
    public SysPrepaidPackage selectSysPrepaidPackageByPackageId(Long packageId)
    {
        return sysPrepaidPackageMapper.selectSysPrepaidPackageByPackageId(packageId);
    }

    /**
     * 查询套餐购买充值列表
     * 
     * @param sysPrepaidPackage 套餐购买充值
     * @return 套餐购买充值
     */
    @Override
    public List<SysPrepaidPackage> selectSysPrepaidPackageList(SysPrepaidPackage sysPrepaidPackage)
    {
        return sysPrepaidPackageMapper.selectSysPrepaidPackageList(sysPrepaidPackage);
    }

    /**
     * 新增套餐购买充值
     * 
     * @param sysPrepaidPackage 套餐购买充值
     * @return 结果
     */
    @Override
    public int insertSysPrepaidPackage(SysPrepaidPackage sysPrepaidPackage)
    {
        return sysPrepaidPackageMapper.insertSysPrepaidPackage(sysPrepaidPackage);
    }

    /**
     * 修改套餐购买充值
     * 
     * @param sysPrepaidPackage 套餐购买充值
     * @return 结果
     */
    @Override
    public int updateSysPrepaidPackage(SysPrepaidPackage sysPrepaidPackage)
    {
        return sysPrepaidPackageMapper.updateSysPrepaidPackage(sysPrepaidPackage);
    }

    /**
     * 批量删除套餐购买充值
     * 
     * @param packageIds 需要删除的套餐购买充值主键
     * @return 结果
     */
    @Override
    public int deleteSysPrepaidPackageByPackageIds(Long[] packageIds)
    {
        return sysPrepaidPackageMapper.deleteSysPrepaidPackageByPackageIds(packageIds);
    }

    /**
     * 删除套餐购买充值信息
     * 
     * @param packageId 套餐购买充值主键
     * @return 结果
     */
    @Override
    public int deleteSysPrepaidPackageByPackageId(Long packageId)
    {
        return sysPrepaidPackageMapper.deleteSysPrepaidPackageByPackageId(packageId);
    }
}
